<?php

require_once './include/common.inc.php';
$page_title = 'jans2en furniture - Products - Product Listing';

getMyParam('categoryid');

$toUrl = 'product_photo_list.php?categoryid=%d';
if ($jansen_type > 0 && $jansen_uid > 0) 
{	
	$toUrl = 'product_list.php?categoryid=%d';
}
$vNull = false;

$category_list = GetCategoryTable($_categories,$toUrl,0,$categoryid,&$vNull);
$postiondiv= GetProductCatePositionDiv(null,null,&$vNull);;
$baner_img='<div class="bigtitle">产品</div>';
 
$ViewAllUrl = sprintf($toUrl,"0").'&viewall=1';

// -------------- guideͼƬ start ----------------------------------------
$pic_ary = getSystemValue("");
$img1 = $pic_ary["picture_other_product1en"];
$img2 = $pic_ary["picture_other_product2en"];

if (trim($img1) == "" || !file_exists("attachments/system/" . $img1)) {
	$img1 = '<img src="attachments/noCN.gif" alt="" width="297" height="292"/>';
} else {
	$wh = "";
	$imgSize=getimagesize("attachments/system/".$img1);
	if($imgSize[0] > 370) $wh .= ' width="370"';
	if($imgSize[1] > 370) $wh .= ' height="370"';
	$img1 = '<img src="attachments/system/'.$img1.'"'.$wh.' alt=""/>';
}

if (trim($img2) == "" || !file_exists("attachments/system/" . $img2)) {
	$img2 = '<img src="attachments/noCN.gif" alt="" width="297" height="292"/>';
} else {
	$wh = "";
	$imgSize=getimagesize("attachments/system/".$img2);
	if($imgSize[0] > 370) $wh .= ' width="370"';
	if($imgSize[1] > 370) $wh .= ' height="370"';
	$img2 = '<img src="attachments/system/'.$img2.'"'.$wh.' alt=""/>';
}
// -------------- guideͼƬ end ----------------------------------------

require_once PrintEot('header3');
require_once PrintEot('products');
require_once PrintEot('footer');

?>